objects = cpu_load.o mem_load.o
all: $(objects)
	g++ cpu_load.cpp -lpthread -lrt -o cpu_load
	g++ mem_load.cpp -o mem_load
%.o : %.c
	gcc -c $<
clean:
	rm *.o
	rm cpu_load